import components from "unplugin-vue-components/vite";
import { TinyVueResolver } from '@opentiny/unplugin-tiny-vue'
import { Plugin } from "vite";
export default function createComponents(): Plugin {
  return components({
    dirs: ["src/components", "src/layout"],
    include: [/\.vue$/, /\.vue\?vue/, /\.ts$/, /\.tsx$/],
    dts: "./src/types/components.d.ts",
    resolvers: [ TinyVueResolver ]
  });
}
